package com.ghck.server.model;

import java.util.Date;
/**
 * 聊天组表  <br>
 * t_chat_thread <br>
 * v1.0 2016-05-01
 */
 public class ChatThread extends BaseModel{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//组名
 	//name
	private String name;

 	//成员总数
 	//members
	private Integer members;

 	//组类型,1：一对一私聊,2：群聊
 	//thread_type
	private Integer threadType;

 	//1：医生对医生,4:患者对患者,5：医生与患者,tips:计算方法= 1<<(成员角色-1) 然后&运算
 	//type
	private Integer type;

 	//组创建后的首条messageID
 	//start_msg_id
	private Integer startMsgId;

 	//最近一条messageId
 	//last_msg_id
	private Integer lastMsgId;

 	//md5值 md5(小ID|大ID)
 	//md5_value
	private String md5Value;

 	//创建者
 	//creator_id
	private Integer creatorId;

 	//创建者角色
 	//creator_role
	private Integer creatorRole;

 	//创建者名称
 	//creator_name
	private String creatorName;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*组名
 	*name
 	*/
	public String getName() {
		return name;
	}
	
	/**
	*组名
 	*name
 	*/
	public void setName(String name) {
		this.name = name;
	}
	
	/**
	*成员总数
 	*members
 	*/
	public Integer getMembers() {
		return members;
	}
	
	/**
	*成员总数
 	*members
 	*/
	public void setMembers(Integer members) {
		this.members = members;
	}
	
	/**
	*组类型,1：一对一私聊,2：群聊
 	*thread_type
 	*/
	public Integer getThreadType() {
		return threadType;
	}
	
	/**
	*组类型,1：一对一私聊,2：群聊
 	*thread_type
 	*/
	public void setThreadType(Integer threadType) {
		this.threadType = threadType;
	}
	
	/**
	*1：医生对医生,4:患者对患者,5：医生与患者,tips:计算方法= 1<<(成员角色-1) 然后&运算
 	*type
 	*/
	public Integer getType() {
		return type;
	}
	
	/**
	*1：医生对医生,4:患者对患者,5：医生与患者,tips:计算方法= 1<<(成员角色-1) 然后&运算
 	*type
 	*/
	public void setType(Integer type) {
		this.type = type;
	}
	
	/**
	*组创建后的首条messageID
 	*start_msg_id
 	*/
	public Integer getStartMsgId() {
		return startMsgId;
	}
	
	/**
	*组创建后的首条messageID
 	*start_msg_id
 	*/
	public void setStartMsgId(Integer startMsgId) {
		this.startMsgId = startMsgId;
	}
	
	/**
	*最近一条messageId
 	*last_msg_id
 	*/
	public Integer getLastMsgId() {
		return lastMsgId;
	}
	
	/**
	*最近一条messageId
 	*last_msg_id
 	*/
	public void setLastMsgId(Integer lastMsgId) {
		this.lastMsgId = lastMsgId;
	}
	
	/**
	*md5值 md5(小ID|大ID)
 	*md5_value
 	*/
	public String getMd5Value() {
		return md5Value;
	}
	
	/**
	*md5值 md5(小ID|大ID)
 	*md5_value
 	*/
	public void setMd5Value(String md5Value) {
		this.md5Value = md5Value;
	}
	
	/**
	*创建者
 	*creator_id
 	*/
	public Integer getCreatorId() {
		return creatorId;
	}
	
	/**
	*创建者
 	*creator_id
 	*/
	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}
	
	/**
	*创建者角色
 	*creator_role
 	*/
	public Integer getCreatorRole() {
		return creatorRole;
	}
	
	/**
	*创建者角色
 	*creator_role
 	*/
	public void setCreatorRole(Integer creatorRole) {
		this.creatorRole = creatorRole;
	}
	
	/**
	*创建者名称
 	*creator_name
 	*/
	public String getCreatorName() {
		return creatorName;
	}
	
	/**
	*创建者名称
 	*creator_name
 	*/
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	